// Create by guowusheng on 2025/04/06
#ifndef APP_FLASH_H
#define APP_FLASH_H
//#include "main.h"
//#include "app_define.h"
#include "drv_flash.h"

#define USER_FLASH_BASE             FLASH_END - 0x0FFF
#define USER_FLASH_PLAN_ADDR        USER_FLASH_BASE
#define USER_FLASH_PLAN_SIZE        0x80
#define USER_FLASH_PLAN_OFFSET      0x08


#define USER_FLASH_DATA_ADDR        USER_FLASH_PLAN_ADDR + USER_FLASH_PLAN_SIZE
#define USER_FLASH_DATA_SIZE        0x80
#define USER_FALSH_DATA_OFFSET      0x04

#define USER_FLASH_APP_FLAG_ADDR    FLASH_END - 0x7F
#define USER_FLASH_APP_FLAG_SIZE    (0x80)
#define USER_FLASH_APP_OFFSET       (4 * 1024)
#define USER_FLASH_APP_SIZE         (28 * 1024)
#define USER_FLASH_APP1_BASE        FLASH_BASE + USER_FLASH_APP_OFFSET
#define USER_FLASH_APP2_BASE        USER_FLASH_APP1_BASE + USER_FLASH_APP_SIZE

#endif